<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/task"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:task="http://www.springframework.org/schema/task"
    xmlns:beans="http://www.springframework.org/schema/beans"
    xsi:schemaLocation="http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
    <!-- Open and Close Lucene Index Directory to write and index information -->
     <beans:bean name="indexWriter" class="org.encuestame.business.search.IndexWriterManager" scope="prototype">
           <beans:property name="directoryStore" ref="indexRamDirectory"></beans:property>
    </beans:bean>
      <beans:bean name="indexerManager" class="org.encuestame.business.search.IndexerManager" scope="prototype">
        <!-- Extensions files allowed to index -->
        <beans:property name="extensionFilesAllowed">
            <beans:list>
                <!-- Document word 2007 -->
                <beans:value >docx</beans:value>
                <!-- PDF Document -->
                <beans:value>pdf</beans:value>
                <!-- Spreadsheets Documents(Excel 2003) -->
                <beans:value>xls</beans:value>
                <!-- Text Document -->
                <beans:value>txt</beans:value>
            </beans:list>
        </beans:property>
     </beans:bean>
      <beans:bean name="searchManager" class="org.encuestame.business.search.SearchAttachmentManager" scope="singleton">
        <beans:property name="directoryIndexStore" ref="indexRamDirectory"></beans:property>
     </beans:bean>
    <!-- Index directory description.-->
    <beans:bean id="indexRamDirectory" class="org.encuestame.business.search.IndexRAMDirectory" scope="singleton"/>
</beans:beans>
